<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>用户修改</title>
<link rel="stylesheet" href="${path}/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="${path}/css/system.css">
<script src="${path}/bootstrap/js/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="${path}/bootstrap/js/bootstrap.min.js"></script>
</head>
<body>
	<div class="container-fluid" >
		<div >
			<ol class="breadcrumb">
			  <li><a href="#">当前位置:主页</a></li>
			  <li><a href="#">用户管理</a></li>
			  <li class="active">用户修改</li>
			</ol>
			<div class="data_form">
				<form action="${path}/user.do" method="post" >
					<input type="hidden" name="method" value="edit">
					<input type="hidden" name="uid" value="${user.uid}">
					<table >
						<tr>
							<td>
								<label for="username">用户名称：</label>
							</td>
							<td>
								<input type="text" id="username" name="username" value="${user.username}"/>
							</td>
						</tr>
						<tr>
							<td>
								<label >角色：</label>
							</td>
							<td>
								<c:forEach items="${roles}" var="role">
									<c:choose>
										<c:when test="${role.check}">
											${role.rname}<input type="checkbox" checked  name="rid" value="${role.rid}"/>

										</c:when>
										<c:otherwise>
											${role.rname}<input type="checkbox"   name="rid" value="${role.rid}"/>

										</c:otherwise>

									</c:choose>



								</c:forEach>


							</td>
						</tr>
						<tr>
							<td>
								<label for="phone">手机号：</label>
							</td>
							<td>
								<input type="text" id="phone" name="phone" value="${user.phone}"/>
							</td>
						</tr>
						<tr>
							<td>
								
							</td>
							<td>
								<input type="submit" class="btn btn-primary btn-xs" value="保存"/>&nbsp;&nbsp;
								<input type="button" onclick="history.back()" class="btn btn-primary btn-xs" value="返回" />
							</td>
						</tr>
						
					</table>
				</form>
			</div>
		</div>
	</div>
</body>
</html>